ImageStorageOffset.opIndexAssign

Set a pixel given the position.

  1. void opIndexAssign(Color value, size_t offset)
    interface ImageStorageOffset(Color)
    @nogc @safe
    void
    opIndexAssign
    (
    Color value
    ,
    size_t offset
    )
  2. void opIndexAssign(Color value, size_t offset)
  3. size_t count [@property getter]
  4. size_t count [@property getter]

Parameters

offset size_t

The offset of the pixel

value Color

The color to assign to the pixel

Throws

If offset coordinate is outside of the image boundary.

See Also

setPixelAtOffset

Meta